﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Web;
using Toolkit.Web.Helpers;

namespace Toolkit.Web.ViewComponents.DataGrid
{
    public interface IDataGridSelectionInputModel
    {
        IList<string> IncludeInSelection
        {
            get;
        }

        IList<string> ExcludeFromSelection
        {
            get;
        }

        bool IncludeInSelectionByDefault
        {
            get;
        }
    }

    [DataContract]
    public class DataGridSelectionInputModel : IDataGridSelectionInputModel
    {
        public DataGridSelectionInputModel()
        {
            IncludeInSelection = new List<string>();
            ExcludeFromSelection = new List<string>();
        }

        public IList<string> IncludeInSelection
        {
            get;
            set;
        }

        public IList<string> ExcludeFromSelection
        {
            get;
            set;
        }

        public bool IncludeInSelectionByDefault
        {
            get;
            set;
        }
    }
}
